package com.bupt.ilink.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bupt.ilink.entity.pojo.store.QueryConditionInfo;
import com.bupt.ilink.entity.pojo.store.StoreFlowInfo;
import com.bupt.ilink.entity.store.StoreFlow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Collection;
import java.util.List;

@Mapper
public interface StoreFlowMapper extends BaseMapper<StoreFlow> {

    IPage<StoreFlowInfo> getFlowInfosByCondition(Page<?> page, @Param("condition") QueryConditionInfo condition);

    @Select("SELECT * FROM tb_store_flow WHERE flow_id = #{sourceFlowId}")
    StoreFlowInfo getStoreFlowInfosBySourceFlowId(@Param("sourceFlowId") String sourceFlowId);

}
